package hibernate.clientAccount;

import java.util.StringTokenizer;

import hibernate.p.Pair;
import hibernate.p.Unit;
import hibernate.billStream.Bill;

public class ClientBillState{
	
	private boolean isBillAccountOwner;
	private Bill currentBill;
	private Pair deposite=new Pair();
	
	public void setIsBillAccountOwner(boolean ifIsBillAccountOwner){
		isBillAccountOwner=ifIsBillAccountOwner;
	}
	
	public boolean getIsBillAccountOwner(){
		return isBillAccountOwner;
	}
	
	public void setCurrentBill(Bill bill){
		currentBill=bill;
	}
	
	public Bill getCurrentBill(){
		return currentBill;
	}
	
	public Double getDeposite(){
		return ((Double)deposite.getFirst()).doubleValue();
	}
	
	public void setDeposite(Double info){
		this.deposite.setFirst(info);
	}
	
	public String getDepositeUnit(){
		return ((Unit)this.deposite.getSecond()).toString();
	}
	
	public void setDepositeUnit(String unit){
		//System.out.println("/////////////////////////"+unit+"/////////////////////////\n");
		this.deposite.setSecond(Unit.parseUnit(unit));
	}
	
}